<?php

// uncomment the following to define a path alias
// Yii::setPathOfAlias('local','path/to/local-folder');

// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
	'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
	'name'=>'家加网|家具代理网|家具渠道|找家具|家具厂商|代理商|经销商|',
	'language'=>'zh_cn',

	// preloading 'log' component
	'preload'=>array('log'),
	'layout'=>'main',
	// autoloading model and component classes
	'import'=>array(
		'application.models.*',
		'application.components.*',
		'application.filters.*',
		'application.extensions.jformvalidate.EHtml',
	),

	// application components
	'components'=>array(
		'log'=>array(
			'class'=>'CLogRouter',
			'routes'=>array(
				array(
					'class'=>'CFileLogRoute',
					'levels'=>'error, warning',
				),
			),
		),
		'user'=>array(
			// enable cookie-based authentication
			'allowAutoLogin'=>false,
			'loginUrl'=>array('site/login'),
		),
		// uncomment the following to set up database
		'db'=>array(
            'class' => 'CDbConnection',
            'connectionString'=>'mysql:host=127.0.0.1;port=3306;dbname=furniture360',
            'username' => 'root',
            'password' => 'qeephp',
			'charset' => 'utf8'
        ),
        'jformvalidate' => array (
    		'class' => 'application.extensions.jformvalidate.EJFValidate',
     		'enable' => true
    	),
    	'image'=>array(
          'class'=>'application.extensions.image.CImageComponent',
            // GD or ImageMagick
            'driver'=>'GD',
            // ImageMagick setup path
            //'params'=>array('directory'=>'/opt/local/bin'),
        ),
	),

	// application-level parameters that can be accessed
	// using Yii::app()->params['paramName']
	/*
	'params'=>array(
		// this is used in contact page
		'adminEmail'=>'webmaster@example.com',
	),*/
	'params'=>require(dirname(__FILE__).'/params.php'),
);